/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package evidence.controler;

import evidence.model.pomocneTridy.Time;
import java.io.File;
import java.util.List;
import java.util.Map;
import java.util.Set;


/**
 *
 * @author Protheo
 */
public class Controler extends AbstractControler implements IControler {
    public static final String ERROR_SETTINGS = "";

    public Integer novyMonth(int rok, int mesic) {
        return this.model.newMonth(rok, mesic);
    }

    public Integer openMonth(File cesta) {
        return this.model.openMonth(cesta);
    }

    public void saveMonth(File cesta) {
        this.model.saveMonth(cesta);
    }

    public List<List<Object>> getDay(int den) {
        return this.model.getDay(den);
    }

    public void addDenniZaznam(int den, Time zacatek, Time konec, String typ, String klient, String ukon, int doprava, Boolean prestavka, String nepritomnost) {
        this.model.addDenniZaznam(den, zacatek, konec, typ, klient, ukon, doprava, prestavka, nepritomnost);
    }

    public void editDenniZaznam(int den, int pozice, Map<Integer, Object> prop) {
        this.model.editDenniZaznam(den, pozice, prop);
    }

    public void removeDenniZaznam(int den, int polozka) {
        this.model.removeDenniZaznam(den, polozka);
    }

    public void convert() {
        this.model.convert();
    }

    public List<String> getKlienti() {
        return this.model.getKlienti();
    }

    public List<String> getUkony(String klient) {
        return this.model.getUkony(klient);
    }

    public Set<Integer> getTyp(String ukon) {
        return this.model.getTyp(ukon);
    }

    public Boolean isPrestavka(int den) {
        return this.model.isPrestavka(den);
    }

    public Time getPosledni(int den) {
        return this.model.getPosledni(den);
    }

    public Boolean isSaveFile() {
        return this.model.isSaveFile();
    }

    public Boolean isSaved() {
        return this.model.isSaved();
    }

    public void saveAll() {
        this.model.saveAll();
    }

    public Map<Integer, String> getSettings(){
        return this.model.getSettings();
    }
}
